﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CustomerServiceCenter.Models {
    public class TicketWeiXinModel {
        public long ClientID { set; get; }//客户ID
        public string IssueType { set; get; }//问题类型
        public string Status { set; get; }//问题状态
        public DateTime SubmitDate { set; get; }//创建时间
        public Nullable<DateTime> AssignDate { set; get; }//受理时间
        public long TicketID { set; get; }//请求ID
        public string AssignerName { set; get; }//处理人
        public string Mobile { set; get; }//技术专员手机
        public string Telephone { get; set; }//技术专员电话
        public string OrderNumber { set; get; }//订单号
        public string IssueDescription { set; get; }//问题描述
        public string Email { set; get; }//技术专员邮箱

        public string OnCall { get; set; }//项目组默认电话

        public override string ToString()
        {
            return "\r\n\r\nClientID:" + this.ClientID
                + "\r\nAssignerName:" + this.AssignerName
                + "\r\nIssueType:" + this.IssueType
                + "\r\nAssignDate:" + this.AssignDate
                + "\r\nIssueDescription:" + this.IssueDescription
                + "\r\nMobile:" + this.Mobile
                + "\r\nOrderNumber:" + this.OrderNumber
                + "\r\nSubmitDate:" + this.SubmitDate
                + "\r\nTelephone:" + this.Telephone
                + "\r\nTicketID:" + this.TicketID
                + "\r\nStatus:" + this.Status
                + "\r\nOnCall:" + this.OnCall;
        }
    }


    public class InputFieldAndDataSource :InputFieldModel
    {
        public List<DataSource> DataSourceList { get; set; }

    }

    public class DataSource
    {
        public string DataSourceValue { get; set; }
        public string DataSourceDescription { get; set; }
    }



    public class InputFieldData
    {
        public List<InputFieldAndDatasourceDetail> InputField { get; set; }

        public string Value { get; set; }

    }


    public class InputFieldModel {
        public long FieldID { get; set; }
        public string FieldName { get; set; }
        public string FieldDescription { get; set; }
        public long FieldDataType { get; set; }
        public long? IssueTypeID { get; set; }
        public long FieldSortSeq { get; set; }
        public bool IsMandary { get; set; }
        public string EnglishName { get; set; }
        public long ApplicationID { get; set; }

    }


    public class InputFieldAndDatasourceDetail :InputFieldModel
    {
        public DataSource InputDataSource { get; set; }
    }



}